<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>用户主页</title>
</head>
<body>
<p th:text="'您好！来自'+${school}+'的用户：'+${name}"></p>
<a href="/modifyuserlogin">修改账户</a>
<a href="/modifyuserinfo">修改个人信息</a>
<a href="/api/logout">登出</a>
<br>
<a href="/problem/list?page=0">题目列表</a>
<a target="_blank" th:href="${'/record/list?problemid=ALL'+'&page=0'}">提交记录</a>
<a href="/problemlist/list?page=0">题单列表</a>
<a href="/contest/list?page=0">比赛列表</a>
<button type="button" onclick="deleteUser()">删除账户</button>
<script>
    function deleteUser(){
        var r=confirm("确认删除账户吗？此操作无法恢复");
        if (r==true){
            window.location.href='/api/deleteuserlogin';
        }
    }
</script>
</body>
</html>